package org.finesys.common.disruptor.event.translator;

import com.lmax.disruptor.EventTranslatorTwoArg;
import org.finesys.common.disruptor.event.DisruptorEvent;

public class DisruptorEventTwoArgTranslator implements EventTranslatorTwoArg<DisruptorEvent, String, String> {


    @Override
    public void translateTo(DisruptorEvent disruptorEvent, long sequence, String tag, String key) {
        disruptorEvent.setTag(tag);
        disruptorEvent.setKey(key);
    }
}
